import { defineStore } from 'pinia'

export const useUserStore = defineStore({
    id: 'user',
    state: () => ({
        userInfo: {
            department: '',
            group: '',
            role: '',
            name: '',
            employeeId: '',
            status: ''
        }
    }),
    actions: {
        setUserInfo(userInfo: any) {
            this.userInfo = userInfo
        }
    }
})